package com.example.mapper;

import com.example.entity.ComRecruit;
import com.example.entity.Recruit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cyk
 * @since 2022-02-19
 */
@Mapper
@Repository
public interface RecruitMapper extends BaseMapper<Recruit> {

  //  @Select("select * FROM recruit a INNER JOIN company b ON a.com_id = b.id")
    public List<ComRecruit> getAllRecruit();

    public ComRecruit getAllRecruitById(Long id);

    public Recruit getQueryRecruit(Long id);

    int getDelRecruit(Long id);

    boolean saveRecruit(Recruit recruit);

    boolean updateRecruit(Recruit recruit);
}
